package br.com.comdoc.interfaces;

//@author Jorge

import java.sql.SQLException;
import java.util.ArrayList;


public interface InterfaceContato {    
      
    public void salvarContato(String nome1, String nome2, String cargo1, String cargo2, 
            String telefone1, String telefone2, String email1, String email2) 
            throws ClassNotFoundException, SQLException;
    
    public void aterarContato(int id, String nome1, String nome2, String cargo1, 
            String cargo2, String telefone1, String telefone2, String email1, String email2) 
            throws ClassNotFoundException, SQLException;
    
    public void deletarContato(int id) 
            throws ClassNotFoundException, SQLException;
    
    public ArrayList consultarContatos() 
            throws ClassNotFoundException, SQLException;
    
    public ArrayList consultarContatosPorNomeExato(String nome) 
            throws ClassNotFoundException, SQLException;
    
    public ArrayList consultarContatosPorNomeConcat(String nomeConcat) 
            throws ClassNotFoundException, SQLException;
    
    public int returnIdContato() throws ClassNotFoundException, SQLException;
    
}
